<extend name="./base" />
<block name="pageContent">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/s-settle.css">
    <div class="main-content">
        <!-- 头部面包屑导航条 -->
        <div class="breadcrumbs" id="breadcrumbs">
            <!--导航路径列表-->
            <ul class="breadcrumb no-margin-left">
                <li>
                    <a>管理后台</a>
                </li>
                <li class="action">
                    问答管理
                    <i class="fa fa-times ace-icon"></i>
                </li>
            </ul>
        </div>
        <!--页面容器-->
        <div class="page-content">
            <div class="nav-tab" style="position: relative">
                <ul class="nav-tab-title ">
                    <li class="nav-this">编辑问答</li>
                </ul>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <form class="form-horizontal s_input-bgcolor jsform" method="post" action="{$Think.config.DOMAIN_URL}/ask/editAsk">
                        <input  name="id" class="form-control" type="hidden" value="{$selfInfo.id}">
                        <input  name="page" class="form-control" type="hidden" value="{$page}">
                        <div class="s_form-textarea s_share-textarea">
                            <span>关键词</span>
                            <input placeholder="请输入关键词" name="key_words" value="{$selfInfo.key_words}" datatype="*" class="form-control s_form-width">
                        </div>
                        <div class="s_form-textarea s_share-textarea">
                            <span>回复内容</span>
                            <textarea name="return_info" style="width:800px;" datatype="*" placeholder="请输入回复内容" class="form-control">{$selfInfo.return_info}</textarea>
                        </div>
                        <div style="margin: 50px 80px;">
                            <button class="btn" type="submit" style="width: 100px; border-radius: 2rem; background: #0451d7!important;border:1px solid #0451d7;margin-left: 20px;">保存</button>
                            <button class="btn" type="button" onclick="locationTo('{$Think.config.DOMAIN_URL}/ask/index?p={$page}')" style="width: 100px; border-radius: 2rem; border:1px solid #999999;margin-left: 20px;color:#999 !important;background: #fff">取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(".jsform").Validform();
    </script>
</block>